/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-02-13 Time: 23:07
 */

import {Action} from "../../../../configuration/ActionCreator"
import {requestGetDs,requestGetRole,requestGetArea} from "../../../../request/DepartmentalRepairOrderRequest"

/**
 * 获取数据
 * @str {string}
 * @page {int}页数
 */
export const DepartMsg = 'DepartMsg';
export const getDs = (str,page) => {
    let action = Action(DepartMsg);
    return dispatch => dispatch(requestGetDs(action, str,page))
}

/**
 * 获取selectStatus
 */
export const SelectRole = 'SelectRole';
export const getRole = () => {
    let action = Action(SelectRole);
    return dispatch => dispatch(requestGetRole(action))
}

/**
 * 获取selectArea
 */
export const SelectArea = 'SelectArea';
export const getArea = () => {
    let action = Action(SelectArea);
    return dispatch => dispatch(requestGetArea(action))
}
